﻿CREATE TABLE [dbo].[UserOperationRecord] (
    [RecordID]          BIGINT         IDENTITY (1, 1) NOT NULL,
    [OperationType]     TINYINT        NULL,
    [CreateTime]        DATETIME       NULL,
    [Description]       NVARCHAR (MAX) NULL,
    [IP]                VARCHAR (64)   NULL,
    [DeviceDescription] NVARCHAR (MAX) NULL,
    [Source]            NVARCHAR (MAX) NULL,
    [UserID]            BIGINT         NULL,
    CONSTRAINT [PK_USEROPERATIONRECORD] PRIMARY KEY CLUSTERED ([RecordID] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'UserID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作来源', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'Source';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'设备描述', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'DeviceDescription';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'IP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'IP';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作描述', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'Description';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'记录时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'CreateTime';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作类型', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'OperationType';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'记录标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord', @level2type = N'COLUMN', @level2name = N'RecordID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户操作记录', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserOperationRecord';

